import request from '@/utils/request'

// 获取订单
export function OrderDetail(params) {
    return request({
      url: '/order',
      method: 'get',
      params
    })
  }


// 获取订单详情
export function OrderDetailList(params) {
    return request({
      url: '/orderdetail',
      method: 'get',
      params
    })
  }

// 接单
export function OrderDetailAccept(params) {
    return request({
      url: '/taking_orders',
      method: 'get',
      params
    })
  }


  // 结账
  export function OrderDetailCheckout(params) {
    return request({
      url: '/checkout',
      method: 'get',
      params
    })
  }



  // 获取二维码
  export function Qrcode(data) {
    return request({
      url: '/tablenum',
      method: 'post',
      data
    })
  }


  // 新增桌号
  export function Tablenum(params) {
    return request({
      url: '/allTable',
      method: 'get',
      params
    })
  }